<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <link rel="stylesheet" href="${ctxStatic}/layui-v2.5.6/layui/css/layui.css">
<!--    <link type="text/css" rel="stylesheet" href="layui/css/layui.css" />
   -->
  <script type="text/javascript" src="${ctxStatic}/layui-v2.5.6/layui/layui.js"></script>
  <!--SWF在初始化的时候指定，在后面将展示-->	 
  
 </head>
<body>

<div style="margin: 10px;">

   
	<form class="layui-form layui-form-pane" lay-filter="example">
	
	<div class="layui-form-item">
	 	 <input type="hidden" name="id">
	 </div> 
	 <div class="layui-form-item">
	    <label class="layui-form-label">融资银行：</label>
	   
		    <div class="layui-input-inline">
		      <input type="text" name="financingBank" id="financingBank" autocomplete="off" class="layui-input">
		    </div> 
	   
	 </div>
	    <div class="layui-form-item layui-form-text">
				<label class="layui-form-label">备注:</label>
				<div class="layui-input-block">
				  <textarea name="remarks" placeholder="请输入内容" class="layui-textarea"></textarea>
				</div>
		</div>  
	 
	  <div class="layui-form-item">
	    <div class="layui-input-block">
	      <button class="layui-btn" id="submitBtn" lay-submit lay-filter="formDemo">立即提交</button>
	      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
	    </div>
	  </div>
	</form>
</div>
	 
  
<script>

layui.use(['form', 'laydate'], function(){
	var form = layui.form;
	var laydate = layui.laydate;
	var $ = layui.$;
	//表单赋值
	form.val('example', {		
					"id": "${financingBankInformation.id}"
					,"financingBank":"${financingBankInformation.financingBank}"
		 		 	/* ,"createBy": "${financingBankInformation.createBy}" 
			       	,"createDate": "${financingBankInformation.createDate}"
			     	,"updateBy":"${financingBankInformation.updateBy}"
			       	,"updateDate": "${financingBankInformation.updateDate}" */
			    	,"remarks": "${financingBankInformation.remarks}"
			    
				  
	          
 });
	//监听提交
	 form.on('submit(formDemo)', function(data){
		$('#submitBtn').addClass("layui-btn-disabled").attr("disabled",true);
		var aa = JSON.stringify(data.field);
		$.ajax({
            url: "${ctx}/jx/financingBankInformation/save",
            type: "POST",
            dataType: "json",
            data: {
            	dataString : aa
            },
            async: false,
            success: function(data){
                layer.msg(data,{time:1*500},function(){
                    var iframe_index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
                    parent.layer.close(iframe_index); //再执行关闭      
                    parent.layui.table.reload('thisReloadId');
                });
            },
            error: function(){
            	layer.msg('保存失败', {icon: 2});
            	$('#submitBtn').removeClass("layui-btn-disabled").attr("disabled",false);
            }
        });
		return false;
	}); 
	
	
	

	
	
	
	
}); 
</script>
  

</body> 
</html>
